import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'logic.dart';

abstract class BasePage<L extends BaseLogic>
    extends StatelessWidget {
  var logic;

  BasePage({Key? key}) : super(key: key) {
    logic = Get.put(getLogic());


  }

  BuildContext? context;

  @override
  Widget build(BuildContext context) {
    this.context = context;
    // SystemChrome.setEnabledSystemUIOverlays(
    //     SystemUiOverlay.values); //显示状态栏、底部按钮栏
    //修改状态栏字体颜色
    // setStatusBarColor();
    return getBuild(context);
  }

  L getLogic();

  Widget getBuild(BuildContext context);
}
